#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages
import os

# 读取README文件
with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

# 读取requirements.txt
with open("requirements.txt", "r", encoding="utf-8") as fh:
    requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]

setup(
    name="data-engine",
    version="1.0.0",
    author="Solming",
    description="智能数据可视化引擎 - 基于大语言模型的自然语言到图表配置转换工具",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/Solming/data_engine",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Data Scientists",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Scientific/Engineering :: Visualization",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
    ],
    python_requires=">=3.8",
    install_requires=requirements,
    extras_require={
        "dev": [
            "pytest>=7.0.0",
            "pytest-asyncio>=0.21.0",
            "black>=23.0.0",
            "flake8>=6.0.0",
            "mypy>=1.0.0",
        ],
    },
    package_data={
        "data_engine": [
            "templates/prompts/*.py",
            "docs/*.md",
        ],
    },
    include_package_data=True,
    keywords=[
        "data visualization",
        "natural language processing",
        "echarts",
        "llm",
        "artificial intelligence",
        "data analysis",
        "charts",
        "pandas",
        "数据可视化",
        "自然语言处理",
        "大语言模型"
    ],
    project_urls={
        "Bug Reports": "https://github.com/Solming/data_engine/issues",
        "Source": "https://github.com/Solming/data_engine",
        "Documentation": "https://github.com/Solming/data_engine/blob/main/README.md",
    },
) 